package com.zbkj.service.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.common.model.DeliveryPersonnel;
import com.zbkj.common.model.order.Order;
import com.zbkj.common.request.DeliveryPersonnelSearchRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 配送员表 Mapper 接口
 * </p>
 *
 * @author keNan
 * @since 2025-03-12
 */
public interface DeliveryPersonnelDao extends BaseMapper<DeliveryPersonnel> {

    /**
     * 查询配送员正在配送的订单列表
     *
     * @param deliveryPersonnelId
     * @param orderStatus
     * @param orderStatusList
     * @return
     */
    List<Order> selectOrderList(@Param("deliveryPersonnelId") Integer deliveryPersonnelId, @Param("orderStatus") Integer orderStatus, @Param("orderStatusList") Integer... orderStatusList);

    /**
     * 查询配送员列表
     *
     * @param request
     * @return
     */
    List<DeliveryPersonnel> selectListBySearch(@Param("request") DeliveryPersonnelSearchRequest request);
}
